<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<script type="text/javascript">
	function CheckUser()
	{
		var User=document.getElementById("UserName").value;
		if(User.length<=0){
			alert("请输入登录用户名！")
			return false;
		}		
		return true;
	}
</script>
</head>
<body>

	<form type="post" action="UserMess.jsp" onsubmit="return CheckUser()">
		姓名：<input type="text" name="UserName" id="UserName" />
		密码：<input type="text" name="Password" id="Password" />
		<input type="submit" value="提交"/>
	</form>
	
</body>
</html>